import React, {Component} from 'react';
import {Route,Switch,Redirect} from 'react-router-dom';
import Login from './container/login'
import Home from './container/home'
import 'antd/dist/antd.css';
import './assets/css/all.css';

class App extends Component {
    render() {
        return (
            <Switch>
                <Route path='/login' component={Login}></Route>
                <Route path='/' component={Home}></Route>
                <Redirect to='/login'></Redirect>
            </Switch>
        );
    }
}

export default App;